package util;

public class Func {
	public static final int roll(int size) {
		return (int) (Math.random() * size) + 1;
	}
	public static final int roll(int num, int size) {
		int sum, i;
		sum=0;
		for(i=0; i<num; i++) {
			sum += (int) (Math.random() * size);
		}
		return sum;
	}
}
